package com.yuke.cloud.service.smc.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;

@Data
@ApiModel(value="com.yuke.cloud.service.smc.dto.GoodsDto")
public class GoodsDto {

    @Column(name = "shop_goods_id")
    @ApiModelProperty(value="shopGoodsId主键，自增")
    private Long shopGoodsId;

    @Column(name = "shop_id")
    @ApiModelProperty(value="shopId店铺ID，与店铺表关联")
    private Long shopId;

    @Column(name = "product_id")
    @ApiModelProperty(value="productId商品编号，与商品规格表关联")
    private Long productId;

    @Column(name = "is_alive")
    @ApiModelProperty(value="is_alive货物是否上架")
    private Long isAlive;

    @Column(name = "sale_price")
    @ApiModelProperty(value="salePrice自定义售价，价格单位为分")
    private Integer salePrice;

    @Column(name = "stock_count")
    @ApiModelProperty(value="stockCount可售卖的库存量")
    private Integer stockCount;

    @Column(name = "sort")
    @ApiModelProperty(value="sort排序，数值越小越靠前")
    private Integer sort;

    @Column(name = "create_time")
    @ApiModelProperty(value="createTime贩卖申请时间")
    private Date createTime;

    @Column(name = "distance")
    @ApiModelProperty(value="distance当前与店铺的距离")
    private Integer distance;

    @ApiModelProperty(value="count当前商品的月销量")
    private Integer count;
}
